package exam;

import java.io.*;
import java.awt.*;

import javax.swing.*;
import javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout;

import java.net.*;

public class ConfigGUI {
	public JTabbedPane tabPane;
	
	public ConfigGUI(){
		SerialDemo sd = new SerialDemo();
		TCPServer tcp_suv = new TCPServer();
		TCPClient tcp_cli = new TCPClient();
		UDPTester udp = new UDPTester();
		tabPane = new JTabbedPane();
		
		tabPane.addTab("Serial", sd.southPanel);
		tabPane.addTab("TCP Client", tcp_cli.OptionsPane());
		tabPane.addTab("TCP Server", tcp_suv.OptionsPane());
		tabPane.addTab("UDP Client", udp.ClientOptionsPane());
		tabPane.addTab("UDP Server", udp.ServerOptionsPane());
		
	}
	
	
	public static void main(String[] args){
		new ConfigGUI();
	}
}
